package com.sam.im.heiqun.utils;

/**
 * Created by zhangqiang on 2018/6/22.
 */
public class ArrayUtil {

    public static int firstPositonOf(Object[] array,Object o){

        if(array == null || o == null){
            return -1;
        }

        for (int i = 0; i < array.length; i++) {

            if(o == array[i]){
                return i;
            }
        }
        return -1;
    }
}
